package com.whfc.hdc.dao;

import com.whfc.hdc.entity.FshWarn;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-21 16:15
 */
@Repository
public interface FshWarnMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FshWarn record);

    int insertSelective(FshWarn record);

    FshWarn selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FshWarn record);

    int updateByPrimaryKey(FshWarn record);

    /**
     * 批量保存报警信息
     *
     * @param warnList 报警信息
     */
    void batchInsert(@Param("warnList") List<FshWarn> warnList);
}